Skip to content

feat: add MiniMax Messages provider support#4354

Merged
Hmbown merged 1 commit into
Hmbown:mainfrom
octo-patch:octo/20260713-minimax-provider-recvoNohdpT5QV-v2
Jul 14, 2026
Merged

feat: add MiniMax Messages provider support#4354
Hmbown merged 1 commit into
Hmbown:mainfrom
octo-patch:octo/20260713-minimax-provider-recvoNohdpT5QV-v2

Conversation

@octo-patch

Copy link
Copy Markdown
Contributor

Summary

  • Add a dedicated MiniMax Messages provider with global and China Base URL support.
  • Register MiniMax-M3 and MiniMax-M2.7 with verified context, modality, thinking, and pricing metadata.
  • Cover authentication, routing, request paths, persistence, documentation, and generated provider facts.

Testing

  • cargo fmt --all
  • cargo check -p codewhale-config -p codewhale-agent -p codewhale-tui -p codewhale-cli --all-targets --locked
  • cargo test -p codewhale-config --locked minimax -- --nocapture
  • cargo test -p codewhale-config --locked bundled_asset -- --nocapture
  • cargo test -p codewhale-agent --locked minimax -- --nocapture
  • cargo test -p codewhale-tui --bin codewhale-tui --locked minimax -- --nocapture
  • cargo test -p codewhale-cli --locked parses_auth_subcommand_matrix -- --nocapture
  • node web/scripts/check-facts.mjs

Checklist

  • Updated docs or comments as needed
  • Added or updated tests where relevant
  • Verified TUI behavior manually

Register MiniMax-M3 and MiniMax-M2.7 for the OpenAI-compatible and Messages routes. Add regional endpoint guidance, request tests, catalog limits, and tier-aware pricing.
@octo-patch octo-patch requested a review from Hmbown as a code owner July 13, 2026 13:18
@github-actions

Copy link
Copy Markdown

Thanks @octo-patch for taking the time to contribute.

This repository is observing a maintainer-managed PR intake gate in dry-run mode, so this pull request is staying open. This note helps maintainers prepare the allowlist before any enforcement is considered.

Please read CONTRIBUTING.md for the expected contribution shape. A maintainer can grant recurring PR access by commenting /lgtm on a pull request.

@Hmbown Hmbown merged commit 974a1e4 into Hmbown:main Jul 14, 2026
2 checks passed
Hmbown pushed a commit that referenced this pull request Jul 14, 2026
Follow-up to #4354, which added MiniMax's Anthropic-dialect route as a
manual Provider impl and moved the $0.30/$1.20 bundled pricing from
MiniMax-M3 (now honestly unpriced) to MiniMax-M2.7. Three surfaces still
pinned the old expectations and broke CI on main:

- scripts/check-provider-registry.py only learns providers from the
  provider!() macro plus a hardcoded manual-impl list; add
  MinimaxAnthropic to that list.
- provider_metadata_defaults_match_runtime_helpers now expects the
  AnthropicMessages wire format for MinimaxAnthropic.
- bundled_database_is_nonempty_and_honest asserts the priced row on
  MiniMax-M2.7 and that MiniMax-M3's price stays honestly unknown.
- model_picker_hint_uses_model_registry_metadata checks M3 for the
  honest 'price unknown' hint and M2.7 for the priced-row path.

Verified with cargo fmt, the provider-registry gate, the full
codewhale-config suite (370 passed), and the full codewhale-tui binary
suite (6682 passed; the two remaining failures are the container's
missing-Landlock parity test and the known run-in-temp-dir parallelism
flake, which passes in isolation).

Prepared with agent assistance.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants